<template>
    <view class="admin">
        <view class="adminItem" v-for="item in adminList" @click="handleNavigateTo(item.url)">
            <text>{{ item.name }}</text>
            <u-icon name="arrow-right" :size="8"></u-icon>
        </view>
    </view>
</template>

<script lang="ts" setup >
import { handleNavigateTo } from '@/plugins/uniApp'
const adminList = ([
    {name:"新增小区", url:"../addCommunity/index"},
    {name:"编辑小区信息", url:"../editCommunity/index"},
    {name:"查看小区人员", url:"../communityPersonnel/index"},
    {name:"新增商铺", url:"../addShop/index"},
    {name:"编辑商铺", url:""}
])
</script>

<style lang="scss" scoped>
.admin{
    display: flex;
    flex-direction: column;
    .adminItem{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 35rpx 30rpx;
		font-size: 30rpx;
		color: #3A393A;
    }
}
</style>